<template>
  <div>
    login
    <i-button type="primary" @click="login()">login</i-button>
  </div>
</template>

<script>
  import {mapMutations} from 'vuex'

  export default {
    name: "Login",
    methods: {
      ...mapMutations([
        'login/changeLoginStatus'
      ]),
      login() {
        this.$store.commit('login/changeLoginStatus', true)
        this.$router.push('/')
      }
    }
  }
</script>

<style scoped>

</style>
